#ifndef TJSON_H
#define TJSON_H

#include <QJsonDocument>
#include <QJsonObject>
#include <QJsonParseError>

class tJson : public QObject
{
    Q_OBJECT
public:
    explicit tJson(QObject *parent = nullptr);

signals:

public:
    bool validateJson(QString jsonStr);
    QString dictToJsonString(const QVariantMap &dict);
    QVariantMap jsonStringToDict(const QString &jsonStr);
};

#endif // TJSON_H
